# -*- coding: utf-8 -*-
"""
Created on Mon Oct  8 14:32:52 2018

@author: luolei

线性搜索法
"""
import numpy as np


def func(x):
	"""
	待优化函数
	:param x:
	:return:
	"""
	y = pow(0.15 * x, 2) + np.cos(x) + np.sin(3 * x) / 3 + np.cos(5 * x) / 5 + np.sin(7 * x) / 7
	return y
